package com.ziya.android.a3dmodel.course.two

import android.os.Bundle
import com.ziya.android.a3dmodel.BaseActivity
import com.ziya.android.a3dmodel.R
import com.ziya.android.a3dmodel.databinding.ActivityCourseTwoBinding


class CourseTwoActivity : BaseActivity<ActivityCourseTwoBinding>() {
    override fun onCreated(savedInstanceState: Bundle?) {
        //必须代码设置版本
        vb.viewGlSurface.setEGLContextClientVersion(2)
        vb.viewGlSurface.setRenderer(CourseTwoNativeRenderer())


        vb.viewGlSurfaceJvm.setEGLContextClientVersion(2);
        vb.viewGlSurfaceJvm.setRenderer(CourseTwoJVMRenderer())
    }

    override fun getLayoutID(): Int {
        return R.layout.activity_course_two
    }
}